package com.byyy.ccts.modules.sys.service.impl;

import com.byyy.ccts.core.common.service.impl.CommonServiceImpl;
import com.byyy.ccts.modules.sys.entity.Dict;
import com.byyy.ccts.modules.sys.entity.RoleDataPermission;
import com.byyy.ccts.modules.sys.entity.UserDataPermission;
import com.byyy.ccts.modules.sys.mapper.RoleDataPermissionMapper;
import com.byyy.ccts.modules.sys.mapper.UserDataPermissionMapper;
import com.byyy.ccts.modules.sys.service.IRoleDataPermissionService;
import com.byyy.ccts.modules.sys.service.IUserDataPermissionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service("userDataPermissionService")
public class UserDataPermissionServiceImpl extends CommonServiceImpl<UserDataPermissionMapper, UserDataPermission> implements IUserDataPermissionService {

    @Override
    public List<Dict> queryDictListByUserPermission(String userId) {
        return this.baseMapper.queryDictListByUserPermission(userId);
    }
}
